<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <div>
            <input type="text" v-model="inputValue" >
            <button @click="add">ADD</button>
            <ul>
                <todo-item 
                    v-for="(item,index) of list" 
                    :key = "index"
                    :content = "item"
                    :index="index"
                    @del="del"
                >{{item}}</todo-item>
            </ul>
        </div>
    </div>
</body>
<script src="../lib/vue.js"></script>
<script src="../lib/vue-router.js"></script>
<script src="./js/main.js"></script>

</html>